<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
 <%@ include file="/common/query.jsp"%>
<%@ include file="/common/det.jsp"%>
<script>
        $(function(){
            init();
        });
        function init(){
            var setting = {};
            var url ="";
            var p_insert = false;
            var p_del = false;

			var select = (getQueryStringByDecode("select")==null || getQueryStringByDecode("select")=="true");
			var add = true && (!select);
			var edit = true && (!select);;
			var del = true && (!select);
			var singleSelect = (getQueryStringByDecode("singleSelect")==null || getQueryStringByDecode("singleSelect")=="true") ;
			var productCategoryId = getQueryStringByDecode("productCategoryId");
            var columns = [
                {field:'id',title:'id',hidden:true},
                {field:'name',title:'分组名',require:true,search:{type:"single"}},
                {field:'enName',title:'英文分组名',require:true},
                {field:'orderBy',title:'排序',hidden:select,require:true,defaultValue:0},
                {field:'enable',title:'状态',hidden:select,search:{type:"single"},
                    input:{type:'radio',value : [{text:'未启用',value:0,isDefault:true},{text:'已启用',value : 1}]}
                }
            ];
            url='/product/attr/group/manager?';
            if(select){
                url += "search_EQ_enable=1&"
			}
			if(productCategoryId!=null){
                url += "productCategoryId="+productCategoryId
			}
            //setting.singleSelec	t = true;
            createQuery('body',columns,{pager:false,edit:edit,add:add,searchBar:{hidden:select},del:del,heji:false,singleSelect:singleSelect},url);
        };

</script>
</head>
<body>
	  <div id="body"></div>
</body>
</html>